#!/bin/sh

ORG_USERNAME=${1}
APP_NAME=${2}

SCRIPT_FILE=$(basename $0)
SRC_DIR=$(echo $0 | sed "s/${SCRIPT_FILE}//")
SRC_DIR=$(cd ${SRC_DIR}/.. && pwd && cd - > /dev/null 2>&1)
echo "  ${SRC_DIR}"
APP_DIR="${SRC_DIR}/sdd/gae-global-learning-portal-dev-sddverb"

echo Uploading code from ${APP_DIR}...
appcfg.py update -e ${ORG_USERNAME} -A ${APP_NAME} ${APP_DIR}
